package com.zrouter.plugin

import com.android.build.gradle.AppExtension
import org.gradle.api.Plugin
import org.gradle.api.Project

class ZRouterPlugin implements Plugin<Project> {

    @Override
    void apply(Project project) {
        project.logger.error("插件启动")
        AppExtension appExtension = project.getExtensions().getByType(AppExtension.class)
        appExtension.registerTransform(new ZRouterPluginTransform(project))
    }
}